package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.util.OurBaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 首页轮播图对象 home_page
 *
 * @author ruoyi
 * @date 2025-02-10
 */
@Data
@TableName("home_page")
public class HomePage extends OurBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主页轮播图id */
    @TableId(value = "home_page_id",type = IdType.AUTO)
    private Long homePageId;

    /** 文章id */
    @Excel(name = "文章id")
    @TableField(value = "article_id")
    private Long articleId;

    public void setHomePageId(Long homePageId)
    {
        this.homePageId = homePageId;
    }

    public Long getHomePageId()
    {
        return homePageId;
    }
    public void setArticleId(Long articleId)
    {
        this.articleId = articleId;
    }

    public Long getArticleId()
    {
        return articleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("homePageId", getHomePageId())
            .append("articleId", getArticleId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
